package org.jretty.util;

import java.io.PrintStream;
import java.io.PrintWriter;

/**
 * 
 * @author zollty
 * @since 2020年11月16日
 */
@SuppressWarnings("serial")
public class NoStackRuntimeException extends BasicRuntimeException {
    
    public NoStackRuntimeException() {
        super();
    }

    public NoStackRuntimeException(String message, String... args) {
        super(message, args);
    }

    public NoStackRuntimeException(Throwable e) {
        super(e);
    }

    public NoStackRuntimeException(Throwable e, String message, String... args) {
        super(e, message, args);
    }

    @Override
    public void printStackTrace() {
    }

    @Override
    public void printStackTrace(PrintWriter err) {
    }

    @Override
    public void printStackTrace(PrintStream err) {
    }

    @Override
    public StackTraceElement[] getStackTrace() {
        return new StackTraceElement[0];
    }

    @Override
    public Throwable getCause() {
        return null;
    }
    
}
